angular.module('Controller')
.controller('QgyUrgeRentModalCtrl',($scope,activeParam,$localStorage,NgTableParams,commonUtil,cryptUtil,wfAlert,commonConstant,$http, $uibModalInstance, items)->
    $scope.info=info=items.bill

    $scope.data={
        reason:''
    }
    $scope.verifyResList=[
        {value:1,name:'通过'}
        {value:0,name:'拒绝'}
    ]
    $scope.confirm = ()->
        if $scope.data.result==0 and $scope.data.reason in ['',undefined]
            wfAlert.toastInfo('请填写拒绝原因')
            return
        data={
            result:$scope.data.result
            reason:$scope.data.reason
        }
        $uibModalInstance.close(data)
    $scope.cancel =()->
        $uibModalInstance.dismiss('cancel')

)